\<%@ page pageEncoding="UTF-8"%>
\<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
\<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
\<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

\<%@ page trimDirectiveWhitespaces="true" %>

<div class="contentBody">
	<!-- t改为shieldTarget，且为jQuery选择器形式 -->
    <form action="/${baseURL!}/search" method="post" t="searchResult" class="searchForm">
        <div class="searchForm">
			<% //循环输出属性 %>
		    <% for ( fieldModel in fieldList ) { %>
		        <% if ( fieldModel.canSearch ) { %>
		        	<% if ( fieldModel.searchType == "date_" ) { %>
		    <span class="search-i"><b>${fieldModel.comments}：</b>
		    	<input type="text" name="\${fieldModel.searchType}s${fieldModel.fieldName}" class="Wdate" value=""
                   id="startDate" onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'endDate\')}'})"/>-
            	<input type="text"name="\${fieldModel.searchType}e${fieldModel.fieldName}" value="" class="Wdate" id="endDate" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'startDate\')}'})"/>
            </span>
		        	<% } else { %>
		    <span class="search-i"><b>${fieldModel.comments}：</b><input type="text" name="\${fieldModel.searchType}${fieldModel.fieldName}"/></span>
		        	<% } %>
		        <% } %>
		    <% } %>
            <span class="search-i">
	            <input class="submit" type="submit" name="doSearch" value="查询">
	            <a href="/${baseURL!}/toAddOrUpdate" class="shieldDialog" viewTitle="添加信息" viewWidth="1000">
	            	<input class="addBaseTable" type="button" name="addBaseTable" value="添加">
	            </a>
            </span>
        </div>
        <div id="searchResult"></div>
    </form>
</div>
